New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pluginjs/pluginjs

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/pluginjs

A workflow for modern frontend development.

  • 0.2.34
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

Core

A flexible modern core js plugin.

Introduction

Demo

Installation

NPM
npm i @pluginjs/pluginjs
Yarn
yarn add @pluginjs/pluginjs

Dependencies

  • jQuery
  • @pluginjs/pluginjs

Getting Started

Include

Webpack && Rollup:

ECMAScript Modules

import core from "@pluginjs/pluginjs"

CommonJS

require("@pluginjs/pluginjs")

CDN: Development:

<script src="/path/to/core.js"></script>
<link rel="stylesheet" href="/path/to/core.css">

Production:

<script src="/path/to/core.min.js"></script>
<link rel="stylesheet" href="/path/to/core.min.css">

Initialize

HTML:

<body>
  <div class="element"></div>
</body>

JS:

Pj.Core('.element', options);
// or jquery way
$('.element').plugin('Core', options);

API

Methods:

Methods are called on core instances through the core method itself. You can also save the instances to variable for further use.

NameDescription
"themeable"Make plugin themeable
"styleable"Make plugin styleable
"eventable"Make plugin eventable
"stateable"Make plugin stateable
"register"Register plugin to core
"translateable"Make plugin translateable

example:

$core.plugin('Core', register)
$core.plugin('Core', register, "foo")
$core.plugin('Core', register, "foo", "bar")

Dependencies:

  • component

Browser support

Tested on all major browsers.

SafariChromeFirefoxEdgeIEOpera
Latest ✓Latest ✓Latest ✓Latest ✓>=10 ✓Latest ✓

As a jQuery plugin, you also need to see the jQuery Browser Support.

Contributing

See Contribution.md.

Changelog

To see the list of recent changes, see Releases section.

Version

Version: 0.0.1

Copyright (C) 2017 Creation Studio Limited.

Licensed under the GPL-v3 license.

FAQs

Package last updated on 28 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc